import gdata.docs.service
from django.shortcuts import render_to_response
from django.template import RequestContext

def dokumenty(request):
	ds=gdata.docs.service.DocsService()
	ds.current_token=request.session['token']
	lista=ds.GetDocumentListFeed()

	listaF=''
	for entry in lista.entry:
		listaF+=entry.title.text.encode('UTF-8') + "<br/>"

	return render_to_response('dokumenty/index.html', {'lista':listaF}, context_instance=RequestContext(request))
